//
//  XJOrderDetailCell3.m
//  XinJiangMall
//
//  Created by RaoBo on 2018/6/21.
//  Copyright © 2018年 Tzyang. All rights reserved.
//

#import "XJOrderDetailCell3.h"
#import "XJOrderDetailBigModel.h"

@interface XJOrderDetailCell3()
/**1.买家留言Lb*/
@property (weak, nonatomic) IBOutlet UILabel *liuyanLb;
/**2.配送方式Lb*/
@property (weak, nonatomic) IBOutlet UILabel *peiSongFangshiLb;
/**3.提货地点Lb*/
@property (weak, nonatomic) IBOutlet UILabel *tiHuoAddressLb;

@end

@implementation XJOrderDetailCell3

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (void)setModel:(XJOrderDetailBigModel *)model {
    _model = model;
    self.liuyanLb.text = [NSString stringWithFormat:@"%@",model.comment];
    
     // 1为配送2为自提
    if ([model.express_type isEqualToNumber:@1]) {
        self.peiSongFangshiLb.text = @"快递";
    }else if ([model.express_type isEqualToNumber:@2]){
        self.peiSongFangshiLb.text = @"自提";
    }else {
        self.peiSongFangshiLb.text = @"";
    }
    
    self.tiHuoAddressLb.text = model.shop_address;
}
@end
